//动物
public abstract class  Animal {

    String animalType;
    int age;

    public Animal() {

    }

    public Animal(String animalType, int age) {
        this.animalType = animalType;
        this.age = age;
    }

    public String getAnimalType() {
        return animalType;
    }

    public void setAnimalType(String animalType) {
        this.animalType = animalType;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public abstract void eat(String s);
}